package com.java.exer1;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

class SuperClass {
    public void method() throws IOException {
        File fis = new File("hellowpr");
        FileInputStream fils = new FileInputStream(fis);
    }
}

class SubClass extends SuperClass {
    public void method() throws FileNotFoundException {
        File fis = new File("hellowpr");
        FileInputStream fils = new FileInputStream(fis);

    }
}